import { defHttp } from "@/utils/http";
import { baseUrlApi } from "./utils";

/** 修改入库单备注 */
export const setInboundUpdate = <T>(data?: object) => {
  return defHttp.post<T>({
    url: baseUrlApi("/inbound/update"),
    data
  });
};

/** 入库单列表带分页 */
export const getInboundPagelist = <T>(data?: object) => {
  return defHttp.post<T>({
    url: baseUrlApi("/inbound/pagelist"),
    data
  });
};

/** 入库单详情 */
export const getInboundDetail = <T>(data?: object) => {
  return defHttp.post<T>({
    url: baseUrlApi("/inbound/detail"),
    data
  });
};

/** 新增入库 */
export const getInboundAdd = <T>(data?: object) => {
  return defHttp.post<T>({
    url: baseUrlApi("/inbound/add"),
    data
  });
};
